// RunGame.h : interface of the CRunGame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(VFC_RUNGAME_H__E6FB23A7_53C3_463a_A966_88ED7F4A0818__INCLUDED_)
#define VFC_RUNGAME_H__E6FB23A7_53C3_463a_A966_88ED7F4A0818__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include <atlctrls.h>
#include "Game.h"

class CRunGame : public CDialogImpl<CRunGame>
{
	CListViewCtrl m_wndListPlayers;
public:
	enum { IDD = IDD_RunGame };

	BEGIN_MSG_MAP(CRunGame)
		COMMAND_ID_HANDLER(IDC_Ready, OnReady)
		MESSAGE_HANDLER(WM_UpdatePlayers, OnUpdatePlayers)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDOK, OnOK)
		COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
	END_MSG_MAP()

// Handler prototypes (uncomment arguments if needed):
//	LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
//	LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
//	LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)

	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnUpdatePlayers(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	BOOL FillPlayersList();
	LRESULT OnReady(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// VisualFC AppWizard will insert additional declarations immediately before the previous line.
#endif // !defined(VFC_RUNGAME_H__E6FB23A7_53C3_463a_A966_88ED7F4A0818__INCLUDED_)
